'use strict';

const Controller = require('egg').Controller;

class ProductsController extends Controller {
  async show () {
    // this.ctx.body = 'hi, egg';
    const id = this.ctx.params.id;
    const show = await this.service.products.show(id);
    this.ctx.body = show;
  }
}

module.exports = ProductsController;
